#ifndef _PISTON_H_
#define _PISTON_H_

#include "Object.h"


#define PISTON_VY		0.08

class Piston : public Object
{

	int min_distance;
	int max_distance;

	float pos_x_temp;
	float pos_y_temp;

public:
	/************************************************************************/
	/* Set/Get Properties                                                                     */
	/************************************************************************/
	OBJECT_TYPE getObjectType();


	/************************************************************************/
	/* Contrutor                                                                     */
	/************************************************************************/
	Piston(LPDIRECT3DDEVICE9 d3ddv,  LPDIRECT3DSURFACE9 backBuffer, LPD3DXSPRITE spriteHandler, float x, float y, int ID, int Object_State);
	~Piston();


	/************************************************************************/
	/* Method                                                                     */
	/************************************************************************/
	//void update(float gameTime);
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void update(list<Object*>* obj_list, DxInput* input, float TPF, Object* simon){}
	void render(int cameraX, int cameraY);
};

#endif